local base = _G
module("GUI.EventHandler.Form.Stock_Detail")

local os = base.os.getenv("OS")
if os == "Windows_NT" then
	rootdir = ".\\"
else
	rootdir = "\\Program Files\\wmssystem\\"
end

base.print("DBG:Eventhandler GUI.EventHandler.Form.Stock_Detail Loaded.\n")
function Parse(methon,para)
	local utils = base.require("Library.Utils.Utils")
	para = utils.Base64_Decode(para)
	base.print("DBG: methon: " .. methon .. " para: " .. para .. "\n")
	if(methon == "back") then
		back()
	else
		base.print("DBG:Unknown action\n")
	end
	base.os.exit(0)
end

function back()
	local file = base.io.open(rootdir .. "\\tmp\\form.txt","w")
	file:write("main")
	file:close()
end